package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Travel;
import cn.wolfcode.luowowo.article.query.TravelQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TravelMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Travel record);

    Travel selectByPrimaryKey(Long id);

    List<Travel> selectAll();

    int updateByPrimaryKey(Travel record);

    List<Travel>queryForList(TravelQueryObject qo);

    List<Travel> getViewNumTop3(Long id);

    List<Travel> selectByAuthorId(@Param("authorId") Long authorId, @Param("qo") TravelQueryObject qo);

    List<Long> selectByAuthor(Long userId);
}